package com.hdp.jetpack_mvvm.livedata

import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData

data class Person(var name: String)

object SingletonLiveData {
    private val name by lazy {
        MutableLiveData<String>()
    }

    fun getName(): LiveData<String> {
        return this.name
    }

    fun setName(name: String) {
        this.name.value = name
    }
}